PPC/CodeGen: fix lwa instruction generation
authorPeter Trommler <ptrommler@acm.org>
Sat, 1 Oct 2016 21:56:31 +0000 (17:56 -0400)
committerClint Adams <clint@debian.org>
Mon, 14 Nov 2016 16:35:40 +0000 (16:35 +0000)
commit2397da7cbe22099a633b2dfb09b5dcc8afbd02b7
treedf98557f7cb57ac98d48f49e4456ae8a0a881237
parentf9b4e2d6f14a9964754af67c327733e233204c74
PPC/CodeGen: fix lwa instruction generation

Opcode lwa is a 64-bit opcode and allows a DS-form only.  This patch
generates lwa opcodes only when the offset is a multiple of 4.

Fixes #12621

Test Plan: validate

Reviewers: erikd, hvr, simonmar, austin, bgamari

Reviewed By: bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2547

GHC Trac Issues: #12621

Gbp-Pq: Name fix-ppc-lwa-generation
compiler/nativeGen/PPC/CodeGen.hs